package com.killer.controller;

import com.killer.service.PersonService;
import com.killer.vo.PersonVo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author ：Killer
 * @date ：Created in 21-2-7 下午4:00
 * @description：${description}
 * @modified By：
 * @version: version
 */
@RestController
@RequestMapping("person")
public class PersonController {

    @Autowired
    private PersonService personService;

    @RequestMapping("/listRelate")
    public PersonVo listRelatePerson(@RequestParam String startName, @RequestParam String endName){
        return personService.listRelatePerson(startName, endName);
    }

}
